  <div>
  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
				<span class="badge">提示</span>
				<p>
					在此你可以对<span class="label-info"><strong>组织功能</strong></span>进行编辑!
				</p>
			</div>
    <div id="tb" style="padding:10px;height:auto">
			<div style="margin-bottom:5px">
			<shiro:hasPermission name="orgzAdd">
				<!--  <a href="javascript:void(0);" class="easyui-splitbutton" data-options="menu:'#mm1',iconCls:'icon-add'">添加</a>
				<div id="mm1" style="width:150px;">
					<div data-options="iconCls:'icon-undo'" onclick="addStandPlaceNode();">增加并列项</div>
					<div data-options="iconCls:'icon-redo'" onclick="addSubitemNode();">增加子项</div>
				</div>-->
				<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="addRowsOpenDlg();">添加</a>
			</shiro:hasPermission>
			<shiro:hasPermission name="orgzEdit">
				<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="updRowsOpenDlg();">编辑</a>
			</shiro:hasPermission>
			<shiro:hasPermission name="orgzDel">
				<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="delRows();">删除</a>
			</shiro:hasPermission>
		<!-- <shiro:hasPermission name="funEndEdit">
				<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="endEdit();">结束编辑</a>
			</shiro:hasPermission>
			<shiro:hasPermission name="funSave">
				<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-save" plain="true" onclick="saveNodes();">保存</a>
			</shiro:hasPermission> -->	
			</div>
			
		</div>
  		<table id="department-dg" title="组织管理"></table>
  </div>
  <div id='department-win'>
  </div>
  <script type="text/javascript">
  
  	var $dg;
	var $grid;
	$(function() {
		 $dg = $("#department-dg");
		 $grid=$dg.treegrid({
			width : 'auto',
			height : $(this).height()-90,
			url : "/sysman/department/getTree.action",
			rownumbers:true,
			animate: true,
			collapsible: true,
			fitColumns: true,
			striped:true,
			border:true,
			//singleSelect:false,
			idField: 'id',
			treeField: 'name',
			 frozenColumns:[[
			                 {title:'组织名称',field:'name',width:parseInt($(this).width()*0.2),
			                  formatter:function(value){
			                   return '<span style="color:purple">'+value+'</span>';
			                  }
			                 }
			    ]],
			columns : [ [ 
			              {field : 'identify',title : '组织编码',width : parseInt($(this).width()*0.1)},
			              {field : 'ename',title : '英文名称',width : parseInt($(this).width()*0.1),align : 'left'},
			              {field : 'shortName',title : '简称',width : parseInt($(this).width()*0.1),align : 'left'},
			              //{field : 'empQty',title : '编制数量',width : parseInt($(this).width()*0.1),align : 'left'},
			              {field : 'iconCls',title : '组织图标',align : 'center',width : parseInt($(this).width()*0.1),
			            	  formatter:function(value,row){
			            		  return "<span class='"+row.iconCls+"' style='display:inline-block;vertical-align:middle;width:16px;height:16px;'></span>";
								}},
			              {field : 'tel',title : '电话',width : parseInt($(this).width()*0.1),align : 'left'},
			              {field : 'fax',title : '传真',width : parseInt($(this).width()*0.1),align : 'left'},
			              {field : 'description',title : '程式描述',width : parseInt($(this).width()*0.2),align : 'left'}
			              ] ],toolbar:'#tb'
		});
	});
	</script>